package com.maiji.cloud.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.maiji.cloud.entities.login.UploadRecord;

import com.maiji.cloud.request.SaveURBelongIdReqDto;
import com.sun.org.apache.xpath.internal.operations.Bool;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface UploadRecordMapper extends BaseMapper<UploadRecord> {


    public Integer updateBelongIdWithImages(@Param("arrayList")ArrayList<SaveURBelongIdReqDto> arrayLists);
    
    public List<UploadRecord> selectListByBelongId(@Param("beLongId") String beLongId);
    public List<UploadRecord> selectMainListByBelongId(@Param("beLongId") String beLongId,@Param("isMain")boolean isMain);
}
